require 'fileutils'

file = File.open('results.txt')

CLASS_COUNT = 20

SAMPLE_COUNT = 10

IMPORT_TAG = "develop"

DEST_DIR = "~/RATE_ROOT/samples"

SAMPLE_DIR = "/Volumes/ratedev-home/RATE_ROOT/samples"
CLASS_COUNT.times do
  cuuid = file.gets
  SAMPLE_COUNT.times do
    suuid, image = file.gets.split(" ")
    puts image
    dest = DEST_DIR + "/" + image.split("/")[0..-2].join("/")
    FileUtils.mkdir_p dest
    FileUtils.cp  SAMPLE_DIR + "/" + image, dest
  end
end

file.close
